package com.psdi.element;

/**
 * 旋转类
 * 用于表示游戏中的旋转角度
 * 包含 x, y, z 三个轴的旋转角度
 */
public class Rotation {
    public float x;
    public float y;
    public float z;
    public Rotation(float x, float y) {
        this.x = x;
        this.y = y;
        this.z= 0; // 默认z轴旋转为0
    }
    public Rotation(float x, float y, float z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }
    public Rotation() {
        this.x = 0;
        this.y = 0;
        this.z = 0; // 默认所有轴旋转为0
    }
}
